home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: cs.vu.nl!jalten
- From: jalten@cs.vu.nl (Alten JP)
- Subject: Re: Minimizing Windows
- Nntp-Posting-Host: kits.cs.vu.nl
- References: <96013022402735247@welcom.gen.nz>
- Sender: news@cs.vu.nl
- Organization: Fac. Wiskunde & Informatica, VU, Amsterdam
- Date: Tue, 30 Jan 1996 12:43:47 GMT
- X-Newsreader: TIN [version 1.2 PL2]
- Message-ID: <DLzvD0.Gp5.0.-s@cs.vu.nl>
-
- Ed Tissink (ed.tissink@welcom.gen.nz) wrote:
- : Using Turbo C++ 4.5 with OWL 2.5 I am trying to write a program which,
- : upon clicking OK in a dialog box, minimizes the main application window,
- : but have had very little success in doing so.
-
- : Generating, displaying and closing the dialog box is no problem but I am
- : unable to tell the application to minimize itself. I have experimented
- : with 'Show(SW_MINIMIZE)' and 'ShowWindow(SW_MINIMIZE)' (and a variety of
- : other options) but even though when the command is executed a WM_SIZE
- : message generated, the window remains on the screen in it's original
- : size, and the command appears to have been completely ignored.
-
- This works for me:
- GetApplication()->GetMainWindow()->ShowWindow(SW_MINIMIZE);
-
- It will find the main windows for you, and tell it to iconize.
- If it doesnt work, mail me for/with more info
-
- Jelle Paul
-
- --
- +-------------------------------------------------------+
- | Jelle Paul Alten | jalten@cs.vu.nl |
- | Vrije Universiteit Amsterdam | |
- +-------------------------------------------------------+
-